#!/usr/bin/env python
import os, sys
from astropy.io import fits
import matplotlib.pylab as plt

def main():
    f = fits.getdata(sys.argv[1])
    plt.imshow(f[::-1,:])
    plt.colorbar()
    plt.show()
    
if __name__ == '__main__':
    main()
